/**
 * @author Mike
 * @date 2017/06/02
 * @desc 首页UI和state连接容器
 */

 import React from 'react';
 import { connect } from 'react-redux';
 import { fetchPost } from '../actions/home';
 import Home from '../views/Home/index.jsx';

 const fetchData = () => {
 	return (dispatch) => {
 		return dispatch(fetchPost());
 	}
 }

 const getData = state => {
 	return {
 		items: state.homeReducer
 	}
 }

 export default connect (
  getData,
  { fetchData }
 )(Home);